home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 7 / PC World Interactive 7.iso / program / cprog.EXE / SWITCH.C < prev    next >
Text File  |  1996-07-05  |  457b  |  25 lines

  1. main()
  2. {
  3.     int kamyon;
  4.     
  5.     for (kamyon = 3;kamyon<13;kamyon = kamyon + 1)
  6.     {
  7.         switch (kamyon)
  8.         {
  9.             case 3:    printf("Degeri simdi uc.\n");
  10.                     break;
  11.             case 4: printf("Degeri simdi dort.\n");
  12.                     break;
  13.             case 5:
  14.             case 6:
  15.             case 7:
  16.             case 8:    printf("Degeri simdi 5 le 8 arasinda.\n");
  17.                     break;
  18.             case 11:printf("Degeri simdi onbir.\n");
  19.                     break;
  20.             default:printf("Tanimsiz degerlerden biri.\n");
  21.                     break;
  22.         }
  23.     }
  24. }
  25.